package com.changhong.springboot.controller;

import com.changhong.springboot.service.helloservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date:2019/10/14 13:15
 * @author:lilair
 */
@RestController
public class HelloController {

    @Value("${person.lastName}")
    private String name;

    @GetMapping("/hello")
    public String sayHello(){
      return  "hello!!! "+name;
    }

}
